﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/4SMasterPage.master"  CodeFile="AddCustomer.aspx.cs" Inherits="AddCustomer" %>


<asp:Content ID="content1" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    <div style="font-size:80%;">
    
        <table style="width:420px;" align="center">
            <tr>
                <td class="style1" align =right >
                <asp:Label ID="lblID" runat="server" Text="客户ID:"></asp:Label>
                </td>
                <td class="style2">
                <asp:TextBox ID="txtID" runat="server" ReadOnly="True"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style1"align =right>
                <asp:Label ID="lblName" runat="server" Text="客户名称:"></asp:Label>
                </td>
                <td class="style2">
                <asp:TextBox ID="txtName" runat="server" style="margin-left: 0px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style1"align =right>
                <asp:Label ID="lblTel" runat="server" Text="联系方式:"></asp:Label>
                </td>
                <td class="style2">
                <asp:TextBox ID="txtTel" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ControlToValidate="txtTel" ErrorMessage="该字段为必填字段！"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style1"align =right>
                <asp:Label ID="lblEmail" runat="server" Text="Email:"></asp:Label>
                </td>
                <td class="style2">
                <asp:TextBox ID="txtEmail" runat="server"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                        ControlToValidate="txtEmail" ErrorMessage="格式不正确！" 
                        ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td class="style1"align =right>
                <asp:Label ID="lblVehicle" runat="server" Text="车牌号:"></asp:Label>
                </td>
                <td class="style2">
                <asp:TextBox ID="txtVehicle" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                        ControlToValidate="txtVehicle" ErrorMessage="该字段为必填字段！"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr align =center >
                <td colspan="2">
                    <br />
                    <asp:Button ID="btnAdd" runat="server" Text="添加" onclick="btnAdd_Click" />
&nbsp;&nbsp;&nbsp;
                    <asp:Button ID="btnCancel" runat="server" onclick="btnCancel_Click" Text="取消" />
                </td>
            </tr>
        </table>
      
    
    </div>
</asp:Content>



